import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/router/route.dart';
import 'package:flutter_app/view/grideview_page.dart';

class AppListWidget extends StatefulWidget {
  final String? text;

  AppListWidget({this.text}) : super();

  @override
  State<StatefulWidget> createState() {
    return AppListState();
  }
}

class AppListState extends State<AppListWidget> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.text ?? ""),
      ),
      body: GridViewPage(items: RouteMap.getAppWeights(context)),
    );
  }
}
